package com.ruoyi.novel.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小说漫画对象 a_novel
 *
 * @author 张三
 * @date 2025-04-18
 */
@TableName("a_novel")
public class Novel  extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 父 */
    @Excel(name = "父")
    private Integer pId;

    /** 分类一 */
    @Excel(name = "分类一")
    private Integer type1;

    /** 分类二 */
    @Excel(name = "分类二")
    private Integer type2;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 内容 */
    private String content;

    /** 标签 */
    private String label;

    /** 会员等级 */
    private Integer integral;

    /** 模式 */
    private String mode;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    @TableField(exist = false)
    private String type2Name;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setType1(Integer type1)
    {
        this.type1 = type1;
    }

    public Integer getType1()
    {
        return type1;
    }
    public void setType2(Integer type2)
    {
        this.type2 = type2;
    }

    public Integer getType2()
    {
        return type2;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setIntegral(Integer integral)
    {
        this.integral = integral;
    }

    public Integer getIntegral()
    {
        return integral;
    }
    public void setMode(String mode)
    {
        this.mode = mode;
    }

    public String getMode()
    {
        return mode;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getType2Name() {
        return type2Name;
    }

    public void setType2Name(String type2Name) {
        this.type2Name = type2Name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type1", getType1())
            .append("type2", getType2())
            .append("sort", getSort())
            .append("title", getTitle())
            .append("image", getImage())
            .append("content", getContent())
            .append("integral", getIntegral())
            .append("mode", getMode())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
